package com.itheima.server.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.itheima.common.core.domain.BaseEntity;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 商机沟通表
 * @TableName hk_business_communication
 */
@TableName(value ="hk_business_communication")
@Data
public class BusinessCommunication extends BaseEntity {
    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 商机id
     */
    private Integer businessId;

    /**
     * 归属人id
     */
    private String ownerId;

    /**
     * 跟进状态
     */
    private Integer trackStatus;

    /**
     * 下次更进时间
     */

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date nextTime;

    /**
     * 沟通重点
     */
    @TableField("`keys`")
    private String keys;

    /**
     * 沟通纪要
     */
    private String record;

    /**
     * 沟通重点字典
     */
    private String keyItems;
}